home *** CD-ROM | disk | FTP | other *** search
-
- Hello!
-
- > This very good file explains different ways to improve speed in your
- > AMOS-programs.
-
- Yes it is!! Thank you Ben!!!
-
- > However some of the tips really surprised me. Ben states that A=A+1
- > should be faster than both Inc A and Add A,1. He also writes that
- > Repeat ... Inc ... Until should be faster than For ... Next. I have
- > been doing some tests on my system and it clearly proves that this
- > is WRONG!
-
- Well, you probably did your test from the amos editor, using the Amos
- interpreter and your tests are right. But if you try to compile your code,
- you'll see that Ben is right. It's strange but for example For Next is much
- faster (about 300%) than Repeat Until when interpreted, but far slower (about
- 50%) when compiled. So now, since you release all your software compiled,
- it's better using Repeat Until and A=A+1. Of course, sometimes you will still
- use For Next since it's easier to read, but limit it for small loops or where
- speed isn't important.
-
- > I can not believe that Ben Wyatt has not checked his tips, so I must
- > conclude that the difference in speed is different on different system
-
- I have got a 030 and Ben's tricks work well.
-
- Bye
-
-
- berionne@flashnet.it >>Bomb!2.0<<
- +--------------------------ON AMINET----------------------------+
- | game/think/VenusTris.lha game/misc/SnailRace.lha |
- | game/shoot/fantasy.lha util/time/MReminder.lha |
- | game/think/Atoms31.lha util/misc/Dialer2.lha |
- | game/think/navalbattle.lha game/think/Manos.lha |
- | game/shoot/in_the_target.lha dev/lang/Logo1_4.lha |
- | gfx/show/PhotoCDAGA_GUI.lha dev/lang/Logo1_4Eng.lha |
- +---------------------------------------------------------------+
- | BASIC programmers never die, they GOSUB and don't RETURN. |
- +---------------------------------------------------------------+
-
-
-
-
-
-
-